<template>
  <RouterView v-slot="{ Component }">
    <KeepAlive>
      <component :is="Component" :key="$route.name" v-if="$route.meta.keepAlive"></component>
    </KeepAlive>
    <component :is="Component" :key="$route.name" v-if="!$route.meta.keepAlive"></component>
  </RouterView>
</template>
<script>
  export default {
    name: 'MarketingCenter'
  }
</script>

